package com.itheima.DEMO;

import java.util.ArrayList;

public class demo02 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("令狐冲");
        list.add("任盈盈");
        list.add("苗人凤");
        list.add(2,"叮当猫");
        list.set(2,"丁当猫");
        list.remove("丁当猫");
        list.remove(2);
        System.out.println(list);
        String name =list.get(0);
        System.out.println(name);
        int size = list.size();
        System.out.println(size);
    }
}
